package com.panshi.hujin2.httpcrawler.config;

import com.panshi.hujin2.httpcrawler.crawler.GmailCrawler;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: wangxl
 * @Date: 2019/1/16 16:27
 */
@Component
public class GfwProxyConfig {

    // gfw ProxyHost
    public static String staticGfwProxyHost;
    // gfw ProxyPort
    public static int staticGfwProxyPort;

    @Value("${gfwProxyPort}")
    public void setGfwProxyPort(int gfwProxyPort) {
        staticGfwProxyPort = gfwProxyPort;
    }

    @Value("${gfwProxyHost}")
    public void setGfwProxyHost(String gfwProxyHost) {
        staticGfwProxyHost = gfwProxyHost;
    }
}
